<template>
  <div>
    <keep-alive>
      <medical v-if="type=='医疗保险'"> </medical>
      <harmDieUp v-if="type=='意外死亡'"> </harmDieUp>
      <harmDisabilityUp v-if="type=='意外残疾'"> </harmDisabilityUp>
      
     <rescueMeidcaUp v-if="type=='紧急医疗'" :name="'紧急医疗'"> </rescueMeidcaUp>
      <rescueMeidcaUp1 v-if="type=='紧急转院'" :name="'紧急转院'"> </rescueMeidcaUp1>
  
      <rescueMeidcaUp2 v-if="type=='紧急运返'" :name="'紧急运返'"> </rescueMeidcaUp2>
  
      <rescueAccompanyUp v-if="type=='陪同费'" :name="'陪同费'"> </rescueAccompanyUp>
      <rescueVisitUp v-if="type=='探访费'" :name="'探访费'"> </rescueVisitUp>
      <rescueInterUp v-if="type=='遗体运返或安葬'" :name="'遗体运返或安葬'"> </rescueInterUp>
      <studyBreakUp v-if="type=='学业中断'"> </studyBreakUp>
      <travelDelayUp v-if="type=='旅行延误'"> </travelDelayUp>
      <travelLoseUp v-if="type=='物品丢失'"> </travelLoseUp>
      <threeUp v-if="type=='个人第三者'"> </threeUp>
    </keep-alive>
     
  </div>
</template>
<script>

import medical from '@/components/lipei/lipeiaddForm/medical'
import harmDieUp from '@/components/lipei/lipeiaddForm/harmDie'
import harmDisabilityUp from '@/components/lipei/lipeiaddForm/harmDisability'
import rescueMeidcaUp from '@/components/lipei/lipeiaddForm/rescueMeidca'


import rescueAccompanyUp from '@/components/lipei/lipeiaddForm/rescueAccompany'
import rescueVisitUp from '@/components/lipei/lipeiaddForm/rescueVisit'
import rescueInterUp from '@/components/lipei/lipeiaddForm/rescueInter'
import studyBreakUp from '@/components/lipei/lipeiaddForm/studyBreak'
import travelDelayUp from '@/components/lipei/lipeiaddForm/travelDelay'
import travelLoseUp from '@/components/lipei/lipeiaddForm/travelLose'
import threeUp from '@/components/lipei/lipeiaddForm/three'
export default {
  data() {
    return {
      type: ""
    }
  },
  components: {
    'medical': medical,
    'harmDieUp': harmDieUp,
    'rescueMeidcaUp': rescueMeidcaUp,
    'rescueMeidcaUp1': rescueMeidcaUp,
        'rescueMeidcaUp2': rescueMeidcaUp,
    'harmDisabilityUp': harmDisabilityUp,
  
    
    'rescueAccompanyUp': rescueAccompanyUp,
    'rescueVisitUp': rescueVisitUp,
    'rescueInterUp': rescueInterUp,
    'studyBreakUp': studyBreakUp,
    'travelDelayUp': travelDelayUp,
    'travelLoseUp': travelLoseUp,
    'threeUp': threeUp
  },
  activated() {
    this.type = this.$route.query["type"];
  }
}
</script>
   